package cn.lili.modules.order.order.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@ApiModel("运营中心PC端-订单列表")
@Data
public class OrderViewVO {
    @ApiModelProperty("订单号")
    private String orderSn;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("买家-用户id")
    private String buyerId;

    @ApiModelProperty("买家-用户昵称")
    private String nickname;

    @ApiModelProperty("店主id")
    private String distributionId;

    @ApiModelProperty("店主昵称")
    private String distributionName = "";

    @ApiModelProperty("下单时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy/MM/dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("订单金额")
    private Double flowPrice = 0.0;

    @ApiModelProperty("状态: FINISHED,PROCESSING,ORDER_RETURN")
    private String profitSharing;

    @ApiModelProperty("状态: 已结算 待结算 已退单")
    private String profitSharingStr;

//------------------------------------------------------
    @ApiModelProperty("页码")
    private Integer pageNumber = 1;
    @ApiModelProperty("条数")
    private Integer pageSize = 10;
    @ApiModelProperty("地址")
    private String joinAddress;
    @ApiModelProperty("开始时间")
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime;
    @ApiModelProperty("结束时间")
//    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    private List<String> profitSharingList;
}
